<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
    <title>后台管理系统</title>
    <#include "../../resource.ftl"/>

</head>

<body>
<div class="container-fluid p-t-15">

    <div class="row" style="font-size: 3px">
        <div class="col-lg-12">
            <div class="card">
                <div class="card-header"><h4>系统用户管理</h4></div>
                <div class="card-body">

                    <div id="toolbar" class="toolbar-btn-action">
                        <button id="btn_add" type="button" class="btn btn-primary m-r-5"
                                data-target="#addObjModal">
                            <span class="mdi mdi-plus" aria-hidden="true"></span>新增
                        </button>
                        <button id="btn_edit" type="button" class="btn btn-info m-r-5"
                                data-target="#updateObjModal">
                            <span class="mdi mdi-border-color" aria-hidden="true"></span>修改
                        </button>
                        <button id="btn_delete" type="button" class="btn btn-danger m-r-5">
                            <span class="mdi mdi-window-close" aria-hidden="true"></span>删除
                        </button>
                        <button id="btn_enable" type="button" class="btn btn-success m-r-5">
                            <span class="mdi mdi-lock-open-outline" aria-hidden="true"></span>启用用户
                        </button>
                        <button id="btn_lock" type="button" class="btn btn-warning m-r-5">
                            <span class="mdi mdi-lock-outline" aria-hidden="true"></span>锁定用户
                        </button>
                        <button id="btn_initpwd" type="button" class="btn btn-cyan m-r-5">
                            <span class="mdi mdi-restart" aria-hidden="true"></span>初始化密码
                        </button>
                    </div>
                    <table id="tb_base"></table>

                </div>
            </div>
        </div>

        <!-- 新增 -->
        <div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="gridSystemModalLabel"
             id="addObjModal">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                    aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title" id="gridSystemModalLabel">新增用户</h4>
                    </div>
                    <div class="modal-body">

                        <form id="addObjForm" method="post" class="site-form">
                            <div class="form-group">
                                <label for="userId">用户Id</label>
                                <input type="text" class="form-control" name="userId" id="userId"
                                       placeholder="请输入用户Id"/>
                            </div>
                            <div class="form-group">
                                <label for="username">用户名</label>
                                <input type="text" class="form-control" name="username" id="username"
                                       placeholder="请输入用户名"/>
                            </div>
                            <div class="form-group">
                                <label for="realName">真实名称</label>
                                <input type="text" class="form-control" name="realName" id="realName"
                                       placeholder="输入您的真实名称"/>
                            </div>
                            <div class="form-group">
                                <label for="email">邮箱</label>
                                <input type="email" class="form-control" name="email" id="email"
                                       aria-describedby="emailHelp" placeholder="请输入正确的邮箱地址"/>
                            </div>
                            <div class="form-group">
                                <label for="password">用户密码</label>
                                <input type="password" class="form-control" name="password" id="password"
                                       placeholder="请输入用户密码"/>
                            </div>
                            <div class="form-group">
                                <label for="repassword">用确认户密码</label>
                                <input type="password" class="form-control" name="repassword" id="repassword"
                                       placeholder="请输入确认用户密码"/>
                            </div>
                        </form>

                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary add-obj-btn">新增提交</button>
                        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    </div>
                </div>
            </div>
        </div>

        <!-- 修改 -->
        <div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="gridSystemModalLabel"
             id="updateObjModal">
            <div class="modal-dialog" role="document">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                    aria-hidden="true">&times;</span></button>
                        <h4 class="modal-title" id="gridSystemModalLabel">修改用户</h4>
                    </div>
                    <div class="modal-body">

                        <form id="updateObjForm" method="post" class="site-form">
                            <div class="form-group">
                                <input type="hidden" class="form-control" name="id"/>
                            </div>
                            <div class="form-group">
                                <label for="userId">用户Id</label>
                                <input type="text" class="form-control" name="userId"
                                       placeholder="请输入用户Id"/>
                            </div>
                            <div class="form-group">
                                <label for="username">用户名</label>
                                <input type="text" class="form-control" name="username"
                                       placeholder="请输入用户名"/>
                            </div>
                            <div class="form-group">
                                <label for="realName">真实名称</label>
                                <input type="text" class="form-control" name="realName"
                                       placeholder="请输入您的真实名称"/>
                            </div>
                            <div class="form-group">
                                <label for="email">邮箱</label>
                                <input type="email" class="form-control" name="email"
                                       aria-describedby="emailHelp" placeholder="请输入正确的邮箱地址"/>
                            </div>
                            <#--<div class="form-group">-->
                            <#--<label for="password">用户密码</label>-->
                            <#--<input type="text" class="form-control" name="password" id="password"-->
                            <#--placeholder="输入您的真实名称"/>-->
                            <#--</div>-->
                        </form>

                    </div>
                    <div class="modal-footer">
                        <button type="button" class="btn btn-primary update-obj-btn">修改提交</button>
                        <button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
                    </div>
                </div>
            </div>
        </div>

    </div>

</div>
<script type="text/javascript" src="/system/user/js/list.js"></script>
</body>
</html>